
/**
 * Record pre-delete trigger.
 * Validate the record to be deleted.
 * When false is returned the record will not be deleted in the database.
 * When an exception is thrown the record will also not be deleted in the database but it will be added to databaseManager.getFailedRecords(),
 * the thrown exception can be retrieved via record.exception.getValue().
 *
 * @param {JSRecord<db:/cepario/analisis_cab>} record record that will be deleted
 *
 * @returns {Boolean}
 *
 * @properties={typeid:24,uuid:"6650E65B-8612-453F-B40B-48BB2D673F9B"}
 */
function onAnalisis_cabRecordDelete(record) {
	record.analisis_cab_to_analisis_dtl.deleteAllRecords()
	return true
}
